package com.app.service;

import com.app.domain.JsonResult;
import com.app.domain.YjData;
import com.app.domain.jwjb.YjDataTime;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;


public interface YjDataService {
    YjData findOne(String id);
    List<YjData> findList(String[] ids);

    JsonResult selectList(String bridgeCode, String device_code, String state, Integer page, Integer limit);
    JsonResult selectList(String bridgeCode, String[] device_code, String state, Integer page, Integer limit);

    void updateById(String state, String id);
    int updateStateById(String state, String id);
    String ConditionUpdate(String id, String field, String value);

    String save(String deviceCode,String bridgeCode,String mudjackDate);

    String selectMcg(String device_code, String bridge_code);

    String selectOneMcg(String device_code, String bridge_code, String duct_code);

    Float sumPmv(String device_code, String bridge_code);

    Float onePmv(String device_code, String bridge_code, String duct_code);

    List<YjDataTime> findStartAndEndTime(String device_code, String bridge_code);

    List<YjData> findYjDataListById(String id);

    Map<String, List> getGraphData(String id);
    Map<String, List> getNewGraphData(String id);
    Map<String, List> getNewGraphData2(String id);
    Map<String, List> getGasbGraphData(String id);
    Map<String, List> getGraphData2(String id);
    Map<String, List> getGraphData3(String id);
    Map<String, List> getGraphData4(String id);


    List<YjData> findYjdataByDeviceCodAndBridgeCode(String device_code, String bridge_code);

    Map<String, Object> findDate(List<Integer> ids);

    JsonResult selectList1(String bridgeCode, String device_code, String mudjackDate,String state, Integer page, Integer limit);
}
